﻿using Microsoft.EntityFrameworkCore;
using RBAC.LuFang.Domain;
using RBAC.LuFang.Domain.Traceability;
using RBAC.LuFang.Domin.Services.TraceabilityService;

namespace RBAC.LuFang.Repository
{
    public class EFCoreContext : DbContext
    {
        public EFCoreContext(DbContextOptions<EFCoreContext> options) : base(options)
        {
        }

        #region RBAC


        //用户
        public DbSet<UserInfo> UserInfos {  get; set; }
        //省
        public DbSet<Province> Provinces {  get; set; }
        //市
        public DbSet<TheCity> TheCitys {  get; set; }
        //县
        public DbSet<County> Countys {  get; set; }
        //角色
        public DbSet<Role> Roles {  get; set; }
        //用户角色
        public DbSet<UserRole> UserRoles {  get; set; }
        //菜单
        public DbSet<MenuInfo> MenuInfos {  get; set; }
        //用户菜单
        public DbSet<RoleMenu> RoleMenus {  get; set; }
        //请假申请
        public DbSet<Leaveapplication> Leaveapplications {  get; set; }

        #endregion

        #region 溯源
        //商品表
        public DbSet<Goods> Goodss { get; set; }
        //图片表
        public DbSet<imges> imgess { get; set; }
        //养殖表
        public DbSet<BreedInfo> BreedInfos { get; set; }
        //保健表
        public DbSet<health> healths { get; set; }
        //企业
        public DbSet<Enterprise> Enterprises { get; set; }
        //屠宰
        public DbSet<slaughter> slaughters { get; set; }
        //深加工
        public DbSet<deepprocessing> deepprocessing { get; set; }

        #endregion



    }
}
